/**
 * 
 */
package com.googlecode.pcapj;


 class PacketImpl implements Packet{
	 BinaryData binaryData;
	 
	 /**
	 * 
	 * @param header
	 * @param buffer
	 */
	public PacketImpl(byte[] buffer, int offset, int length) {
		super();
		binaryData = new BinaryData(buffer, offset, length);
	}
	/* (non-Javadoc)
	 * @see com.googlecode.pcapj.Packet#getData()
	 */
	public byte[] getBytes() {
		return binaryData.getBytes();
	}
}
